package com.example.sentinel.compoment;



import com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.RequestOriginParser;

import javax.servlet.http.HttpServletRequest;

/**
 * @author zxs
 * @since 2020/02/24
 */
public class WebRequestOriginParser  implements RequestOriginParser {
    @Override
    public String parseOrigin(HttpServletRequest request) {
        return request.getHeader("app-origin");
    }
}
